import type { MyObj } from '../types'
export const setArr = (arr: MyObj[], key: string) => {
    localStorage.setItem(key,JSON.stringify(arr))
}
export const getArr = ():MyObj[] => {
    return JSON.parse(localStorage.getItem('arr') as string)
}